package com.digitalchina.model.service;

import com.digitalchina.model.dao.EyeModelCommentMapper;
import com.digitalchina.model.dao.EyeModelDataMapper;
import com.digitalchina.model.model.EyeModelComment;
import com.digitalchina.model.model.EyeModelData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by yang_ on 2017/7/11.
 */
@Service
public class ModelCommentService {

    @Autowired
    private EyeModelCommentMapper eyeModelCommentMapper;

    public int findTotalCount(Map<String, Object> params) {
        return eyeModelCommentMapper.getCount(params);
    }

    public List<EyeModelComment> findAll(Map<String, Object> params) {
        return eyeModelCommentMapper.getModelcomment(params);
    }
    public int update(EyeModelComment eyeModelComment){
        return eyeModelCommentMapper.updateByPrimaryKeySelective(eyeModelComment);
    }
}
